package cn.scw.project.system.service;

import cn.scw.project.system.domain.SysUser;
import cn.scw.project.system.domain.SysUserBrokerage;

import java.util.List;

/**
 * 每日佣金Service接口
 *
 * @author api
 * @date 2020-05-20
 */
public interface ISysUserBrokerageService {
    /**
     * 查询每日佣金
     *
     * @param id 每日佣金ID
     * @return 每日佣金
     */
    public SysUserBrokerage selectSysUserBrokerageById(Long id);

    /**
     * 查询每日佣金列表
     *
     * @return 每日佣金集合
     */
    public List<SysUserBrokerage> selectSysUserBrokerageList();

    /**
     * 新增每日佣金
     *
     * @return 结果
     */
    public int insertSysUserBrokerage(SysUserBrokerage sysUserBrokerage);

    /**
     * 添加佣金
     * @param money
     */
     void addSysUserBrokerageMoney(String facilityCode,double money);
    /**
     * 修改每日佣金
     *
     * @param sysUserBrokerage 每日佣金
     * @return 结果
     */
    public int updateSysUserBrokerage(SysUserBrokerage sysUserBrokerage);

    /**
     * 批量删除每日佣金
     *
     * @param ids 需要删除的每日佣金ID
     * @return 结果
     */
    public int deleteSysUserBrokerageByIds(Long[] ids);

    /**
     * 删除每日佣金信息
     *
     * @param id 每日佣金ID
     * @return 结果
     */
    public int deleteSysUserBrokerageById(Long id);

    SysUserBrokerage selectSysUserBrokerageByToDay();

    void BrokeragePay();

    double countAll(SysUser user);

    double countAllByDealer(SysUser user);
}
